home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000300_news@columbia.edu _Mon Jul 19 20:25:08 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id UAA28541
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 19 Jul 1999 20:25:07 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id UAA08701
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 19 Jul 1999 20:00:17 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Can grep recurse subdirectories?
  11. Date: 20 Jul 1999 00:00:16 GMT
  12. Organization: Columbia University
  13. Message-ID: <7n0e6g$8fq$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <378E6AD7.2CF87AB2@kramer-smilko.com>,
  17. Richard Kramer  <rrkramer@kramer-smilko.com> wrote:
  18. : One last thought - here's a despicably inelegant method that has the
  19. : advantage of not requiring familiarity with find:
  20. : grep foo *.c
  21. : grep foo */*.c
  22. : grep foo */*/*.c
  23. : ... ad nauseum
  24. :
  25. Here's a less nauseating method :-)
  26.  
  27.   rgrep "<pattern>" "<filespec>"
  28.  
  29. where <pattern> is a regular expression to search for, and <filespec>
  30. is a regular expression to match filenames in the current (or given)
  31. directory and all directories below it.  The doublequotes are needed to
  32. prevent the shell from expanding these itself.
  33.  
  34. For rgrep, see:
  35.  
  36.   http://www.columbia.edu/kermit/ckscripts.html
  37.  
  38. Yes, it's a Kermit script:
  39.  
  40.   http://www.columbia.edu/kermit/ck70.html
  41.  
  42. And yes, C-Kermit 7.0 is available for QNX.  It's currently in Beta test;
  43. the final release will come soon.
  44.  
  45. - Frank